#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/time.h>

int main(int argc, char const* argv[])
{
    struct timeval tv;

    if (argc != 3)
    {   
        fprintf(stderr, "usage: %s <sec> <usec>\n", argv[0]);
        exit(0);
    }

    tv.tv_sec = atol(argv[1]);
    tv.tv_usec = atol(argv[2]);

    select(0, NULL, NULL, NULL, &tv);

    return 0;
}
